<?php

require_once('../../../../data_classes/server-data.php_data_classes-core.php.php');

header('Content-type: image/png'); 

$avatar = mysql_fetch_assoc($get_avatar = mysql_query("SELECT * FROM users WHERE id = '2'"));
$look = $avatar['look'];

$font = 'dcc.ttf'; 
$handle = imagecreatefrompng('3.png');
$avatarimg = imagecreatefrompng('http://www.habbo.com/habbo-imaging/avatarimage?figure=".$look."'); 
$bg_color = ImageColorAllocate ($handle, 135, 206, 250); 
$txt_color = ImageColorAllocate ($handle, 50, 200, 50); 
imagettftext($handle, 25, 0, 80, 57, $txt_color, $font, "$online_count; Hobbu en ligne");
ImagePng ($avatarimg, $handle);
ImagePng ($handle); 



?>